package com.yc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.entity.LabelDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LabelDeptMapper extends BaseMapper<LabelDept> {

    @Select("select * from labeldept ORDER BY CONVERT(tname USING GBK) ASC")
    List<LabelDept> list();

    @Select("select a.tid,a.tname from labeldept a ORDER BY tid DESC")
    List<LabelDept> showAll();

}
